(function($) {
	$.fn.validationEngineLanguage = function() {};
	$.validationEngineLanguage = {
		newLang: function() {
			$.validationEngineLanguage.allRules =   {
				"required":{	// Add your regex rules here, you can take telephone as an example
					"regex":"none",
					"alertText":"* 此栏为必填项",
					"alertTextCheckboxMultiple":"* 请选择一个选项",
					"alertTextCheckboxe":"* 此选择框为必选"},
				"length":{
					"regex":"none",
					"alertText":"* 请输入 ",
					"alertText2":" 至 ",
					"alertText3": " 位数字/字符"},
				"maxCheckbox":{
					"regex":"none",
					"alertText":"* 复选框超过最大可选数"},    
				"minCheckbox":{
					"regex":"none",
					"alertText":"* 请至少选择 ",
					"alertText2":" 项"},     
				"confirm":{
					"regex":"none",
					"alertText":"* 您的输入有误，请重新输入"},          
				"telephone":{
					"regex":"/^[0-9\-\(\)\ ]+$/",
					//"regex":"/^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/", 
					//"regex":"\d{3}-\d{8}|\d{4}-\d{7}|\d{8}|\d{7}",
					"alertText":"* 您输入的电话号码格式有误"},  
				"mobilenumber":{
					//"regex":"/(^0?[1][358][0-9]{9}$)/",  
					"regex":"^1[358]\d{9}$|^1060[1-9]\d{1,2}\d{7,8}$",
					"alertText":"* 您输入的手机号码格式有误"},
				"email":{
					"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
					"alertText":"* 您输入的电子邮件地址格式有误"},        
				"date":{
					//"regex":"/^(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)$/",  
					"regex":"/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/",
					"alertText":"* 您输入的时间格式有误，时间格式为：YYYY-MM-DD"},
				"onlyNumber":{
					"regex":"/^[0-9\ ]+$/",
					"alertText":"* 请输入数字和空格"}, 
				"noSpecialCaracters":{
					"regex":"/^[0-9a-zA-Z]+$/",
					"alertText":"* 请去掉特殊字符，重新输入"},  
				"ajaxUser":{
					"file":"validateUser.php",
					"extraData":"name=eric",
					"alertTextOk":"* 该用户名可用",       
					"alertTextLoad":"* 验证中，请稍后……",
					"alertText":"* 该用户名已存在"},       
				"ajaxName":{
					"file":"validateUser.php",
					"alertText":"* 该用户名已存在",
					"alertTextOk":"* 该用户名可用",       
					"alertTextLoad":"* 验证中，请稍后……"},         
				"onlyLetter":{
					"regex":"/^[a-zA-Z\ \']+$/",
					"alertText":"* 请输入英文字符"},
				"customer_name":{
					"regex":"/^[\u4e00-\u9fa5()（）]+$/",
					"alertText":"* 存在非法字符，只允许输入汉字和括号"},
				"customer_address":{
					"regex":"/^[\u4e00-\u9fa5\ -a-zA-Z0-9()（）]+$/",
					"alertText":"* 存在非法字符，只允许输入汉字、字母、数字、括号、空格和横线"},
				"customer_owner":{
					"regex":"/^[\u4e00-\u9fa5a-zA-Z\ ()（）]+$/",
					"alertText":"* 存在非法字符，只允许输入汉字、字母、空格和括号"},
				"customer_phone":{
					"regex":"/^[0-9()\ -]+$/",
					"alertText":"* 存在非法字符，只允许输入数字、空格、横线和括号（半角）"},
				"customer_memo":{
					"regex":"/^[\u4e00-\u9fa5_\ -a-zA-Z0-9()@,.!?\，。：?“”‘’、；！？（）]+$/",
					"alertText":"* 存在非法字符，备注只允许正常字符"},
				"ip":{  
					 "regex":"/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/",  
					 "alertText":"* 请输入有效的IP."},  
				 "chinese":{  
					 "regex":"/^[\u4e00-\u9fa5]+$/",  
					 "alertText":"* 请输入中文."},  
				 "url":{  
					 "regex":"/^[a-zA-z]:\\/\\/[^s]$/",//这些验证请自己加强  
					 "alertText":"* 请输入有效的网址."},  
				 "zipcode":{  
					 "regex":"/^[1-9]\d{5}$/",  
					 "alertText":"* 请输入有效的邮政编码."},  
				 "qq":{  
					 "regex":"/^[1-9]\d{4,9}$/",  
					 "alertText":"* 请输入有效的QQ号码."}, 
			} 
		}
	}
})(jQuery);

$(document).ready(function() {  
        $.validationEngineLanguage.newLang()
});
